# _*_ coding:utf-8 _*_

"""
# @Time　 : 2021/12/28 22:30
# @Author : king
# @File　 : default_function.py
# @project: ApiPytestFramework
# @QQ     : 772084279
# @Email  : 772084279@qq.com
# @blog   : https://ceshizhilu.blog.csdn.net/
"""
import hashlib
import time


# 当前时间戳
def current_highest():
    """获取当前时间戳"""
    return int(time.time())


# 唯一手机号码
def uniq_phone_num():
    return str(round(time.time()*1000))[:11]


# MD5加密
def md5(string):
    m = hashlib.md5()
    m.update(string.encode("utf-8"))
    # 返回十六进制加密结果
    return m.hexdigest()
